package view.component.menu
{
import core.Language;

import framework.view.components.button.ButtonProxy;

/**
 * CastleBuildingMenu
 * @author jliang
 *
 */
public class CastleBuildingMenu extends MapBuildingMenu
{
	//==========================================================================
	//  Constructor
	//==========================================================================
	public function CastleBuildingMenu()
	{
		super();
	}
	//==========================================================================
	//  Overridden methods: MapBuildingMenu
	//==========================================================================	
	override protected function get skinReference():String
	{
		return "swf.ui.CastleBuildMenuSkin";
	}
	
	override protected function get proxyMapping():Array
	{
		return [ 
			{ skin:"upgradeBtn", classRef: ButtonProxy, id:"upgradeBtn", text:Language.getText("@building_menu_upgrade_button_label"), onClick:clickToUpgradeHandler },
			{ skin:"moveBtn", classRef: ButtonProxy, id:"moveBtn", text:Language.getText("@building_menu_move_button_label"), onClick:clickToMoveHandler },
            { skin:"rotateBtn", classRef: ButtonProxy, id:"rotateBtn", text:Language.getText("@building_menu_rotate_button_label"), onClick:clickToRotateHandler }
		];
	}
	
}
}